Repository navigation
docs(skills): objectstack-ai teaches knowledge sources over business objects - #38292
Conversation
…objects Long free text only, one source per corpus with sourceIds, attachment text through a text field. One eval case; the token ratchet row follows the measurement. Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · d16dc4b · 2026-11-28T11:38Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: PR #38292 (card #37976), net diff against merge base Security-touching reads ① Derived judgments
② Semver level
Clause-②: no — agreed. ③ Boundary flags
④ Design judgment
The grader is mechanical ( M1 (must-fix) — case 15's S1 (should-fix) — the with-skill and no-skill runs of case 15 are owed before the Tier H hand-off, and the stated reason does not hold against the tree. The PR body and dev report say no eval runner is in the repository or reachable. The runner is in the head tree: N1 (nit) — rule (a) says "short names stay out" two paragraphs below an example whose N2 (nit) — pay-down residue. The N3 (nit) — the N4 (nit) — rule (a)'s example names N5 (nit) — the ratchet row keeps the trailing comment "-18 (was 6824), then -5 A2′ (was 6806)", which describes two earlier moves and now sits beside 7109. Summary: the skill text and the ratchet raise hold against the code and the ruling; the eval case that accepts them does not hold against its own expected output, and its runs were skipped on a reason the tree contradicts. M1 and S1 are fixed in the eval file and by a run; a fix to case 15 moves the head, so a delta record on the new head closes them by id. Implemented-by: VERDICT: FAIL |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head Review summaryThe three taught rules hold against the tree. Every named argument, field type and tool name exists exactly as taught: Owed before landing:
With the same push (nits N1 to N5):
Ordering with #38224. Both PRs move the objectstack-ai row from 6906. Whichever lands second conflicts on that line and re-measures. With both landed, the row is 7161 at 28671 bytes. That is a head move and earns a fresh record. Next: the fix earns a delta contract review and a delta L1. After that it goes to seat 1 (Tier H, |
…s; re-measure the row Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 742647d · 2026-11-28T12:32Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta record on PR #38292 (card #37976). It follows record 7238743015 and judges the two author commits above Security-touching stays M1: closed S1: closed N1: closed N2: closed N3: closed N4: closed N5: closed ① Derived judgments
② Semver level
Clause-②: no — agreed. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. M1, case 15's assertions. The S1, the runs. N1 to N5, read in the head tree.
The ratchet row, 6906 to 7148.
N6 (nit) — case 15's residual gaps, both stated by the dev. (i) A short field in the middle of a N7 (nit) — the row note lists three items under "PAID DOWN FIRST", but against Summary: both graded findings of record 7238743015 are closed on this head, the five earlier nits are fixed, the arithmetic agrees with the tree, and letter B admits the raise. Two nits remain, both accepted as they stand. Six check-runs were still open when read. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta) at head Review summary
Next: Tier H ( |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T12:51Z · PR #38292 (Fixes #37976) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang:
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Landing · 2026-11-28T12:56Z · PR #38292 · head An authorised APPROVED review from os-zhuang is on this head (review 6097871806). The seat record ACCEPT (7239525394), L1-a ACCEPT (delta) 7239399754 and contract review PASS 7239386538 stand at the same head. Every check is green or expected-skip, and |
Resolve the objectstack-ai ratchet row against main's 7148 (PR #38292): re-measured on the merged tree, 28827 bytes, priced 28800, ceil = 7200; this PR's +52 rides the same ruling (record 6513306068, letter B). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Fixes #37976
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md, section "Knowledge Sources (RAG)": one new block, "Sources over business objects", placed after thesupportKbexample and before "Splitting". Three rules, one example each:contentlists prose (an article body, a ticket'sdescription, a note) with its title or subject line. Numbers, dates, statuses and the names of people or accounts stay out; counts and filters go to the record tools. Example: "Which customers reported login loops?" issearch_knowledge; "how many tickets are open per priority?" isaggregate_records(in-appask:aggregate_data).instructionssay which to pass insourceIds, the argument of the onesearch_knowledgetool. Example:search_knowledge({ query, sourceIds: ['ticket_bodies'] }). Omitted, every exposed source is scanned. No second shape is taught.filefield incontentadds no file text (thefileandhttpkinds are retired). Example: write the extracted text to atextareafield,contract.attachment_text, and list that field.source.contentrow's "Meaningful text only" (rule (a) says it); the row keeps "Never ids or system fields";agent.knowledgepitfall row's "describe intended grounding ininstructions" is now a pointer to rule (b): "name thesourceIdsto pass ininstructions(§ Knowledge Sources)";scripts/check-skills-token-ratchet.mjs: theskills/objectstack-ai/SKILL.mdrow moves 6906 to 7148, the measured remainder, pinned at the measurement, with the arithmetic in the row note. The row's stale trailing comment is removed.skills/objectstack-ai/evals/skills-tools-knowledge.json: case 15 (two corpora, numeric fields, a PDF file field, a count question) covers (a), (b) and (c)..changeset/37976-skill-knowledge-sources-beyond-documents.md:@objectstack/skillspatch.Lines of the
adapterrow and its ratchet note, which the open pull request 38224 edits, are not touched. Both pull requests move the same ratchet row; the one that lands second mergesmainand re-measures.Review round (second commit, c71105c)
must_not_containnow names wrong shapes only:kind: 'file',andkind: 'http',inside a literal (both quote styles),contentFields:, acontent:list that starts withpriority,status,amountorcontract_pdf, and a list that puts one of those four directly after'description'.metadataFields: ['status', 'priority'],groupBy: ['priority']and a sentence that names the retired kinds all pass. Residual, stated: acontentlist that carries a short field in another position is not caught, and a non-contentlist that putsprioritydirectly afterdescriptionwould be refused.contentrow; rule (c) no longer restates that no source reads a file.agent.knowledgerow points toinstructionsand the section again.aggregate_recordsandaggregate_data.Token ratchet arithmetic
Priced bytes are file bytes minus the 27-byte release-stamp line; tokens are
ceil(priced bytes / 4).mainf19350b)skills/objectstack-ai/SKILL.md, linesskills/objectstack-ai/SKILL.md, bytesskills/*/SKILL.md, linesskills/*/SKILL.md, bytesRow note arithmetic: the file is 27648 to 28617 bytes, so the landed priced text is 28590 and
ceil(28590 / 4) = 7148; the row moves +242, headroom 0. The first commit measured 7109; the review's restored clauses and the second tool spelling add 39.Tests
Readings on head 742647d unless a line says otherwise. 742647d differs from c71105c by the changeset note only (its wording follows the reviewed skill text); the eval ran on c71105c, whose
skills/tree is identical.node scripts/check-skills-token-ratchet.mjs: exit 0. "skills/objectstack-ai/SKILL.md is 7148 tokens (ceiling 7148; headroom 0)"; "61 authored bundle file(s) within their ceilings".node scripts/check-skills-token-ratchet.mjs --self-test: exit 0, "self-test: 111 cases pass".pnpm --filter @objectstack/spec run check:skill-docs: exit 0, "Skill docs in sync".pnpm --filter @objectstack/spec run check:skill-refs: exit 0, "10 generated files in sync".node scripts/check-nul-bytes.mjs: exit 0.pnpm --filter @objectstack/spec run check:skill-examples: NOT MEASURED on c71105c (exit 3, prerequisite not met:packages/client-react/distis not built in the recreated worktree, and the shared verify lock was held by a full dogfood run through four 9-minute waits). On the first commit, d16dc4b, it exited 0 with "351 prose examples type-check across 3 surface(s)". The second commit changes prose and no marked code block; CI runs the gate.dispatch-gates --commandslist were run on d16dc4b and are not re-run on c71105c; CI runs them on the new head.Eval case 15, both arms
pnpm --filter @objectstack/scenarios skill-evals --case objectstack-ai/skills-tools-knowledge#15, on c71105c, 1 repetition per arm, served modelclaude-opus-5-5, Claude Code 2.1.332, OAuth login, runner defaults.sourceIds,content:, and none ofaggregate_records/query_records/aggregate_dataScore: with-skill 1/1, no-skill 0/1.
filefield in a knowledge source adds no text from the file, so a hook, flow or import has to extract the PDF's text into atextareafield first, and the source indexes that field." It writescontent: ['subject', 'description']withmetadataFields: ['priority', 'status'], tells the skill "Always pass sourceIds; never search all sources at once", and sends the count toaggregate_data. That answer carriesmetadataFields: ['priority', 'status'], which the first version of the case would have refused.source,chunking,metadata, …) as illustrative". It inventsfields:,fileField: 'contract_pdf'with anextractionblock, and acount_open_tickets_by_prioritytool file; it names nosourceIds.dist/. The verify lock was busy, so the builtdist/of the 16 packages in the runner's closure was copied from sibling worktrees whose package sources are byte-identical to this head (git diff --quietper package, clean status); the seventeenth,refd-timer-testkit, is source-only. The skill text and the case came from this head.issue-37976/eval-15(round.json,summary.md,runs/with one JSON per arm).Acceptance notes
mainf19350b before writing:sourceIdsis an argument ofsearch_knowledge(packages/services/service-knowledge/src/knowledge-tools.ts, its input keys);source.kindhas the one armobject(packages/spec/src/ai/knowledge-source.zod.ts); a document's text is each listed field's value joined as a string (packages/services/service-knowledge/src/knowledge-service.ts, the record-to-document function), so a number incontentis indexed as its digits and afilefield contributes no file text.aggregate_recordsis registered only where the data bridge implementsaggregate; the in-app assistant servesaggregate_data. Rule (a) names both.Verification
Read first, by risk:
skills/objectstack-ai/evals/skills-tools-knowledge.json, case 15'smust_not_contain: the risk is a token that refuses a correct answer.skills/objectstack-ai/SKILL.md, the "Sources over business objects" block: three bullets, each claim listed under Acceptance notes with the file it was read from.scripts/check-skills-token-ratchet.mjs, the row note and the value 7148.Two-minute check:
node scripts/check-skills-token-ratchet.mjsand read its first line. Expected: "skills/objectstack-ai/SKILL.md is 7148 tokens (ceiling 7148; headroom 0)".Human Minimum
packages/specholds no runtime logic. (No schema touched.)pnpm lintis left to CI.main, one pull request.packages/specnot touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code